<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<section class="section-right">
		<!--deer-tit-->
		<div class="deer-tit">
			<h3>会员分析</h3>
			<h4>行为变化分析</h4>
		</div>
		<!--/deer-tit-->
		<!--deer-content-->
		<div class="deer-content">			
			<div class="biz-member-filter">
				<dl>
					<span>时间维度</span>
					<a href="" data-type="1" class="active">30天</a>
					<a href="" data-type="1" class="">自然月</a>
					<i class="fa fa-question-circle fa-2x"></i>
				</dl>
				<dl>
					<span>分析维度</span>
					<a href="" data-type="1" class="active">消费频次</a>
					<a href="" data-type="1" class="">消费升数</a>
					<i class="fa fa-question-circle fa-2x"></i>
				</dl>
				<dl>
					<span>时间范围</span>
					<a href="" data-type="1" class="active">昨天</a>
					<a href="" data-type="1" class="">2017-09-06</a>
					<i class="fa fa-question-circle fa-2x"></i>
				</dl>				
			</div>			
			 <div  class="biz-tubiao-nob"  style="height:600px;" id="main">
			</div>
		</div>
			
		<!--/deer-content-->
	</section>
	<!--js-->
		<aside>
			<script type="text/javascript" src="../layui/layui.js" ></script>
			<script type="text/javascript" src="../js/echarts.min.js" ></script>
			<script type="text/javascript">
				layui.use(['jquery'],function(){					
					var $=layui.jquery;					
					$('.biz-member-filter a').bind('click',function(){
				    	$(this).addClass('active').siblings().removeClass('active')
				    	return false
			    	})
				})				
		 		var myChart = echarts.init(document.getElementById('main'));

			    model= {
			        "nodes": [
			            {
			                "id": "a1",
			                "name": "无消费"
			            },
			            {
			                "id": "a2",
			                "name": "低频用户"
			            },
			            {
			                "id": "a3",
			                "name": "中频用户"
			            },
			            {
			                "id": "a4",
			                "name": "中高频用户"
			            },
			            {
			                "id": "a5",
			                "name": "高频用户"
			            },
			            {
			                "id": "b1",
			                "name": "无消费"
			            },
			            {
			                "id": "b2",
			                "name": "低频用户"
			            },
			            {
			                "id": "b3",
			                "name": "中频用户"
			            },
			            {
			                "id": "b4",
			                "name": "中高频用户"
			            },
			            {
			                "id": "b5",
			                "name": "低频用户"
			            }
			        ],
			        "links": [
			            {
			                "source": "a1",
			                "target": "b1",
			                "value": 0.342284047256003
			            },
			            {
			                "source": "a1",
			                "target": "b2",
			                "value": 0.32322870366987
			            },
			            {
			                "source": "a1",
			                "target": "b3",
			                "value": 0.177682517071359
			            },
			            {
			                "source": "a1",
			                "target": "b4",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a1",
			                "target": "b5",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a2",
			                "target": "b1",
			                "value": 0.342284047256003
			            },
			            {
			                "source": "a2",
			                "target": "b2",
			                "value": 0.32322870366987
			            },
			            {
			                "source": "a2",
			                "target": "b3",
			                "value": 0.177682517071359
			            },
			            {
			                "source": "a2",
			                "target": "b4",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a2",
			                "target": "b5",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a3",
			                "target": "b1",
			                "value": 0.342284047256003
			            },
			            {
			                "source": "a3",
			                "target": "b2",
			                "value": 0.32322870366987
			            },
			            {
			                "source": "a3",
			                "target": "b3",
			                "value": 0.177682517071359
			            },
			            {
			                "source": "a3",
			                "target": "b4",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a3",
			                "target": "b5",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a4",
			                "target": "b1",
			                "value": 0.342284047256003
			            },
			            {
			                "source": "a4",
			                "target": "b2",
			                "value": 0.32322870366987
			            },
			            {
			                "source": "a4",
			                "target": "b3",
			                "value": 0.177682517071359
			            },
			            {
			                "source": "a4",
			                "target": "b4",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a4",
			                "target": "b5",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a5",
			                "target": "b1",
			                "value": 0.342284047256003
			            },
			            {
			                "source": "a5",
			                "target": "b2",
			                "value": 0.32322870366987
			            },
			            {
			                "source": "a5",
			                "target": "b3",
			                "value": 0.177682517071359
			            },
			            {
			                "source": "a5",
			                "target": "b4",
			                "value": 0.133681507072122
			            },
			            {
			                "source": "a5",
			                "target": "b5",
			                "value": 0.133681507072122
			            }
			
			        ]
			    }
			
			    option = {
			        title: {
			            text: '客户消费走势'
			        },
			        tooltip: {
			            trigger: 'item',
			            triggerOn: 'mousemove'
			
			        },
			        color:['red','green','black','blue','#fff'],
			        series: [
			            {
			                type: 'sankey',
			                layout:'none',
			                data: model.nodes,
			                links: model.links,
			                itemStyle: {
			                    normal: {
			                        borderWidth: 1,
			                        borderColor: '#aaa'
			                    }
			                },
			                lineStyle: {
			                    normal: {
			                        //color:'red',
			                        color:'blue',
			                        curveness: 0.5
			                    }
			                },
			                label: {
			                    normal: {
			                        formatter: function(params) {
			                            return params.name;
			                        }
			                    }
			                }
			            }
			        ]
			    }
			
			    myChart.setOption(option);
		</script>
	</aside>
		<!--/js-->
</body>
</html>
